-- GENERATED SPELL FOR [Death's Head Adept] --


function spell0_4516(pUnit, Event) --@Chains of Ice,n/a--
pUnit:FullCastSpellOnTarget(113,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4516', 16500, 1)
end

function spell1_4516(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4516', 7000, 1)
end

function Sorts_4516(pUnit, Event)
local choix_sorts_4516 = math.random(0, 1)
if choix_sorts_4516 == 0 then
pUnit:RegisterEvent('spell0_4516', 1, 1)
end
if choix_sorts_4516 == 1 then
pUnit:RegisterEvent('spell1_4516', 1, 1)
end
end

function mob4516_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4516', math.random(1500, 3000), 1)
end

function mob4516_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4516_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4516_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4516, 1, 'mob4516_Action')
RegisterUnitEvent(4516, 2, 'mob4516_Leave')
RegisterUnitEvent(4516, 3, 'mob4516_Kill')
RegisterUnitEvent(4516, 4, 'mob4516_Die')
